<?php

// 后台路由
Route::group('webadmin', function() {
    Route::get('', 'index/index');
    Route::rule(':c/:a', ':c/:a');
})->prefix('admin/')
    ->header('Access-Control-Allow-Headers', 'Content-Type, X-ELEME-USERID, X-Shard, X-Eleme-RequestID, X-Adminid, X-Token, x_requested_with')
    ->allowCrossDomain();

Route::group('teacheradmin', function() {
    Route::get('', 'index/index');
    Route::rule(':c/:a', ':c/:a');
})->prefix('teacher/')
    ->header('Access-Control-Allow-Headers', 'Content-Type, X-ELEME-USERID, X-Shard, X-Eleme-RequestID, X-Adminid, X-Token, x_requested_with')
    ->allowCrossDomain();

Route::group('suguanadmin', function() {
    Route::get('', 'index/index');
    Route::rule(':c/:a', ':c/:a');
})->prefix('suguan/')
    ->header('Access-Control-Allow-Headers', 'Content-Type, X-ELEME-USERID, X-Shard, X-Eleme-RequestID, X-Adminid, X-Token, x_requested_with')
    ->allowCrossDomain();



